<?php
class runController extends appController
{
	public function index()
	{
		$page = yf_empty($_REQUEST['page'], 1, true);
		$list = Model('run')->getApplyList($page);
		$this->assign('result',$list['data']);
		$this->assign('count',$list['count']);
		$this->assign('list_page',$list['pagelink']);
		$this->display('index.html');
	}
	
	public function execlRun()
	{
		$title = array("序号","姓名","年龄","联系电话","跑团","理由","昵称","openid","票数");
		$result =Model('run')->getApplyAll();
		exportData("樱花跑报名列表",$title,$result);
		exit;
	}
}